<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=utf-8">
		<title>test</title>
		<link rel="stylesheet" href="${website}resource/css/scenic/basic.css" type="text/css" />
		<link rel="stylesheet" href="${website}resource/css/scenic/galleriffic-2.css" type="text/css" />
		<script type="text/javascript" src="${website}resource/js/common.js"></script>
		<script type="text/javascript" src="${website}resource/js/scenic/jquery.galleriffic.js"></script>
		<script type="text/javascript" src="${website}resource/js/scenic/jquery.opacityrollover.js"></script>
		<!-- We only want the thunbnails to display when javascript is disabled -->
		<script type="text/javascript">
			document.write('<style>.noscript { display: none; }</style>');
		</script>
	</head>
	<body>
		<div id="page">
			<div id="container">
				<!-- Start Advanced Gallery Html Containers -->
                <div id="gallery" class="content">
					<div id="controls" class="controls"></div>
					<div class="slideshow-container">
						<div id="loading" class="loader"></div>
						<div id="slideshow" class="slideshow"></div>
					</div>
					<div id="caption" class="caption-container"></div>
				</div>
				<div id="thumbs" class="navigation">
					<ul class="thumbs noscript">
<c:forEach var="i" items="${scenicImage}">
						<li>
							<a class="thumb" name="leaf" href="${website}resource/image/scenic/${i.imageUrl}" title="${i.name} }">
								<img src="${website}resource/image/scenic/${i.imageThumbnailUrl}" alt="${i.name}" />
							</a>
							<div class="caption">
								<div class="image-title">Title #0</div>
							</div>
						</li>
</c:forEach>
					</ul>

				</div>
				<div style="clear: both;"></div>
			</div>
		</div>

           周边景区： <a href="#top">top</a> <br />
			<table width="100%" border="1">
				<tr>
					<c:forEach var="i" items="${showScenicAroundList}">

						<td>
							<a
								href="/GZLY/scenic/showOneScenic.action?scenicId=${i.scenicArroundId}"
								target="_blank"><img src="${i.imageUrl}" width="238"
									height="120" /> </a>
							<br />
							<a
								href="/GZLY/scenic/showOneScenic.action?scenicId=${i.scenicArroundId}"
								target="_blank">${i.name}</a>
						</td>
					</c:forEach>
				</tr>
			</table>

		<script type="text/javascript">
			jQuery(document).ready(function($) {
				// We only want these styles applied when javascript is enabled
				$('div.navigation').css({'width' : '300px', 'float' : 'left'});
				$('div.content').css('display', 'block');

				// Initially set opacity on thumbs and add
				// additional styling for hover effect on thumbs
				var onMouseOutOpacity = 0.67;
				$('#thumbs ul.thumbs li').opacityrollover({
					mouseOutOpacity:   onMouseOutOpacity,
					mouseOverOpacity:  1.0,
					fadeSpeed:         'fast',
					exemptionSelector: '.selected'
				});
				
				// Initialize Advanced Galleriffic Gallery
				var gallery = $('#thumbs').galleriffic({
					delay:                     2500,
					numThumbs:                 15,
					preloadAhead:              10,
					enableTopPager:            true,
					enableBottomPager:         true,
					maxPagesToShow:            7,
					imageContainerSel:         '#slideshow',
					controlsContainerSel:      '#controls',
					captionContainerSel:       '#caption',
					loadingContainerSel:       '#loading',
					renderSSControls:          true,
					renderNavControls:         true,
					playLinkText:              '自动播放',
					pauseLinkText:             '暂停播放',
					prevLinkText:              '&lsaquo; 上一张',
					nextLinkText:              '下一张 &rsaquo;',
					nextPageLinkText:          '下一页 &rsaquo;',
					prevPageLinkText:          '&lsaquo; 上一页',
					enableHistory:             false,
					autoStart:                 false,
					syncTransitions:           true,
					defaultTransitionDuration: 900,
					onSlideChange:             function(prevIndex, nextIndex) {
						// 'this' refers to the gallery, which is an extension of $('#thumbs')
						this.find('ul.thumbs').children()
							.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
							.eq(nextIndex).fadeTo('fast', 1.0);
					},
					onPageTransitionOut:       function(callback) {
						this.fadeTo('fast', 0.0, callback);
					},
					onPageTransitionIn:        function() {
						this.fadeTo('fast', 1.0);
					}
				});
			});
		</script>
	</body>
</html>